jQuery(function($) {
	if (flash_message.length) {
		var $target = $('#content');
		
		var width = 804;
		if ($target.width() < width)
			width = $target.width();
		
		var messages = ['<div class="list-messages" style="width:', width, 'px"><ul>'];
		for (var i = flash_message.length; i--;) {
			messages.push(
				'<li class="message-',
				flash_message[i][0],
				'"><span><span>',
				flash_message[i][1],
				'</span></span></li>'
			);
		}
		messages.push('</ul></div>');
		$target.prepend(messages.join(''));
	}
});